package com.xy.tianyu.module.novel.adapter

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.xy.tianyu.module.novel.bean.X
import com.xy.tianyu.utils.GlideUtils
import kotlinx.android.synthetic.main.item_competitive_man_two_child.view.*

/**
 * @time 2020/11/27 17:42
 * @class 描述:
 */
class CompetitiveManTwoAdapter(layoutResId: Int,data:MutableList<X>) :
    BaseQuickAdapter<X,BaseViewHolder>(layoutResId,data){
    override fun convert(holder: BaseViewHolder, item: X) {
        with(holder.itemView){
            Glide.with(context).load(item.tagImgUrl).apply(GlideUtils.getRequestOptions()).into(iv_icon)
            tv_name.text = item.tagName
        }
    }

}